package com.xinou.daily_report.VO.daily;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sun.org.apache.xpath.internal.operations.Bool;
import com.xinou.daily_report.VO.DailySingleListVO;
import com.xinou.daily_report.entity.SysDailySingle;
import com.xinou.daily_report.entity.SysFlower;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author lcc
 * @create 2021-06-14
 * @注意 本内容仅限于dev414内部传阅，禁止外泄以及用于其他的商业目的
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class DailyInfoVO {

    private Long id;

    private Long workerId;

    private String workerName;

    @ApiModelProperty(value = "总结")
    private String summary;

    @ApiModelProperty(value = "状态。0表示未点评、1表示未回复、2表示已回复")
    private Integer status;

    @ApiModelProperty(value = "0 正常 1 补缴 2 计划")
    private Integer state;

    @ApiModelProperty(value = "是否已阅")
    private Boolean isRead;

    @ApiModelProperty(value = "是否已被加分")
    private Boolean isAddedScore;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd", timezone="GMT+8")
    private LocalDate dailyTime;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm", timezone="GMT+8")
    private LocalDateTime insertTime;

    private List<DailySingleListVO> singleList;

    @ApiModelProperty(value = "能否给此日报加分")
    private Boolean canGiveFlower;

}
